<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-02 19:42:06
 * @LastEditTime: 2023-11-02 14:52:55
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 * 中间变middle  连接 库存账MpcSummaryDetail  + 单据Model
 * 库存账MpcSummaryDetail  子表 库存批次账MpcBatchDetail
 * 库存批次账MpcBatchDetail 连接 批次库存MpcBacthStorage
 * 
 * 根据汇总库存查 账，--》批次库存--》批次库存账--》库存账
 */

namespace App\Repositories;

use App\Models\MpcBacthStorage;
use App\Models\MpcSummaryDetail;
use App\Models\Unit;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;

/** 
 * @property MpcBacthStorage $model 
 */
class BatchStorageRepository extends Repositories
    {
    protected $relation_models = ['location', 'material', 'company', 'customer', 'unit'];
    public function boot(MpcBacthStorage $model)
        {
        $this->model = $model;
        }
    }